package DefaultNamespace;

public class SendmsgPortTypeProxy implements DefaultNamespace.SendmsgPortType {
  private String _endpoint = null;
  private DefaultNamespace.SendmsgPortType sendmsgPortType = null;
  
  public SendmsgPortTypeProxy() {
    _initSendmsgPortTypeProxy();
  }
  
  public SendmsgPortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initSendmsgPortTypeProxy();
  }
  
  private void _initSendmsgPortTypeProxy() {
    try {
      sendmsgPortType = (new Sendmsg_ServiceLocator()).getsendmsgHttpPort();
      if (sendmsgPortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)sendmsgPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)sendmsgPortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (sendmsgPortType != null)
      ((javax.xml.rpc.Stub)sendmsgPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public DefaultNamespace.SendmsgPortType getSendmsgPortType() {
    if (sendmsgPortType == null)
      _initSendmsgPortTypeProxy();
    return sendmsgPortType;
  }
  
  public java.lang.String sendmsg_add(java.lang.String in0, java.lang.String in1) throws java.rmi.RemoteException{
    if (sendmsgPortType == null)
      _initSendmsgPortTypeProxy();
    return sendmsgPortType.sendmsg_add(in0, in1);
  }
  
  public java.lang.String server_st() throws java.rmi.RemoteException{
    if (sendmsgPortType == null)
      _initSendmsgPortTypeProxy();
    return sendmsgPortType.server_st();
  }
  
  public java.lang.String sendmsg_st(java.lang.String in0, java.lang.String in1) throws java.rmi.RemoteException{
    if (sendmsgPortType == null)
      _initSendmsgPortTypeProxy();
    return sendmsgPortType.sendmsg_st(in0, in1);
  }
  
  public java.lang.String sendmsg(java.lang.String in0, java.lang.String in1) throws java.rmi.RemoteException{
    if (sendmsgPortType == null)
      _initSendmsgPortTypeProxy();
    return sendmsgPortType.sendmsg(in0, in1);
  }
  
  
}